<template>
  <div class="xbx">
    <div class="title">
      <div class="t-l">
        <i></i>
        <h3>{{ title }}</h3>
        <ul v-show="title == '热门推荐'">
          <li>华语</li>
          <li>流行</li>
          <li>摇滚</li>
          <li>民谣</li>
          <li>电子</li>
        </ul>
      </div>
      <div class="t-r">
        <span>更多</span>
        <i></i>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  props: ["title"],
};
</script>
 
<style lang = "less" scoped>
@import "../assets/base.less";
.xbx {
  .title {
    display: flex;
    justify-content: space-between;
    width: 689px;
    border-bottom: 2px solid red;
    box-sizing: border-box;
    .t-l {
      display: flex;
      align-items: center;
      i {
        height: 33px;
        padding: 0 5px 0 34px;
        background: url("../assets/images/index.png") no-repeat;
        background-position: -225px -156px;
      }
      h3 {
        font-size: 20px;
        font-weight: normal;
        cursor: pointer;
      }
      ul {
        display: flex;
        margin-left: 20px;
        li {
          border-right: 1px solid #ccc;
          padding-right: 10px;
          padding-left: 10px;
          cursor: pointer;
          &:first-of-type {
            padding-left: 0;
          }
          &:last-of-type {
            border: 0;
          }
        }
      }
    }
    .t-r {
      display: flex;
      align-items: center;
      cursor: pointer;
      i {
        display: inline-block;
        width: 12px;
        height: 12px;
        margin-left: 4px;
        vertical-align: middle;
        background: url("../assets/images/index.png");
        background-position: 0 -240px;
      }
    }
  }
}
</style>